/*
 * DemoCameraDevice.h
 *
 *  Created on: 2018年10月4日
 *      Author: zhengboyuan
 */

#ifndef DEMOCAMERADEVICE_H_
#define DEMOCAMERADEVICE_H_

#include "CameraDevice.h"
#include "TThread.h"
#include "TEvent.h"


class DemoCameraDevice : public CameraDevice, comn::Thread
{
public:
    DemoCameraDevice();
    virtual ~DemoCameraDevice();

	virtual bool open(const Camera& camera);
	virtual void close();
	virtual bool isConnected();
    virtual bool reconnect();

protected:
	virtual int run();
	virtual void doStop();


protected:
	comn::Event	m_event;

};

#endif /* DEMOCAMERADEVICE_H_ */
